package com.mf.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 交易表
 * </p>
 *
 * @author mf
 * @since 2024-05-03
 */
@Getter
@Setter
@TableName("t_deal")
public class Deal {

@TableId(value = "id", type = IdType.AUTO)
private Integer id;

/**
 * 代码
 */
@Schema(description = "代码")
private String dm;

/**
 * 交易时间
 */
@Schema(description = "交易时间")
private String date;

/**
 * 1:成功,2:失败
 */
@Schema(description = "1:成功,2:失败")
private Integer status;

/**
 * 1:第二天卖出,2:第三天卖出,3:第四天卖出
 */
@Schema(description = "1:第二天卖出,2:第三天卖出,3:第四天卖出")
private Integer sale;

/**
 * 买入价格
 */
@Schema(description = "买入价格")
private BigDecimal buyingPrice;

/**
 * 卖出价格
 */
@Schema(description = "卖出价格")
private BigDecimal sellingPrice;

/**
 * 买入金额
 */
@Schema(description = "买入金额")
private BigDecimal purchaseAmount;

/**
 * 卖出金额
 */
@Schema(description = "卖出金额")
private BigDecimal sellingAmount;

private LocalDateTime createdTime;

private LocalDateTime updateTime;
        }